package com.mdlib.helper.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ljlib.help.R;

import java.util.List;

/**
 * 作者：HQY on 16/11/28 11:08
 * 邮箱：hqy_xz@126.com
 */

public class AddKeywordAdapter extends BaseQuickAdapter<String> {

    public AddKeywordAdapter(List<String> data) {
        super(R.layout.item_add_keyword, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, String s) {

        baseViewHolder.setText(R.id.tv_keyword_content, s)
                .addOnClickListener(R.id.tv_keyword_content)
                .addOnClickListener(R.id.iv_keyword_close);

    }
}
